#define _CRT_SECURE_NO_WARNINGS 1

#include"queue.h"
#include"PriorityQueue.h"

void test_queue()
{
	bit::queue<int> q;

	for (int i = 0; i < 5; i++)
	{
		q.push(i);
	}

	size_t size = q.size();
	cout << "size = " << size << endl;

	int front = q.front();
	cout << "front = " << front << endl;

	int back = q.back();
	cout << "back = " << back << endl;

	while (!q.empty())
	{
		q.pop();
	}
	size = q.size();
	cout << "size = " << size << endl;

}

void test_priorityQueue() 
{
	bit::priority_queue<int> q;

	//for (int i = 0; i < 5; i++)
	//{
	//	q.push(i);
	//}

	q.push(5);
	q.push(3);
	q.push(1);
	q.push(8);
	q.push(0);
	q.push(9);

	size_t size = q.size();
	cout << size << endl;

	while(!q.empty())
	{
		int num = q.top();
		cout << num << " ";
		q.pop();
	}
	cout << endl;
}

int main()
{
	//test_queue();
	test_priorityQueue();

	return 0;
}